﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SarkothFarmer;
using SarkothFarmer.Helpers;
using Zeta;
using Zeta.Common;
using Zeta.CommonBot;
using Zeta.Internals.Actors;

namespace SarkothFarmer.ClassSpecifics
{
    class Barbarian : Common
    {
        protected override bool SafeTP()
        {
            if (Composites.IsUnitNear(Main.settingsWrapper.SafeTPDistance))
            {
                UsePowerSelf(SNOPower.Barbarian_Earthquake);
            }
            return base.SafeTP();
        }
        public override void FastMoveTo(Vector3 v)
        {
            if (Composites.HasPower(SNOPower.Barbarian_Leap) && PowerManager.CanCast(SNOPower.Barbarian_Leap))
            {
                UsePowerAt(SNOPower.Barbarian_Leap, v);
            }
            else
            {
                UsePowerSelf(SNOPower.Barbarian_WarCry);
                UsePowerSelf(SNOPower.Barbarian_WrathOfTheBerserker);
            }
            MoveTo(v);
        }
    }
}
